package cn.exrick.xboot.modules.transport.baoxian.dto;

import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@Data
@XmlRootElement(name = "Policylist")
@XmlAccessorType(XmlAccessType.FIELD)
public class InsuranceApplyResponse {
    @XmlElement(name = "Policy")
    private Policy policy = new Policy();

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Policy {
        @XmlElement(name = "PrimaryFlag")
        private String primaryFlag; // 关键字

        @XmlElement(name = "PolicyNo")
        private String policyNo; // 投保单号

        @XmlElement(name = "PolicyNoLong")
        private String policyNoLong; // 保单号

        @XmlElement(name = "ChangeNo")
        private String changeNo; // 批改申请号

        @XmlElement(name = "ChangeNoLong")
        private String changeNoLong; // 批改审核号

        @XmlElement(name = "ErrorMsg")
        private String errorMsg; // 错误信息

        @XmlElement(name = "Status")
        private String status; // 状态码（需映射到枚举）
    }
}
